package org.example.managere.repository.feibiao;

import org.example.managere.entity.feibiao.AmAapModelInfo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

/**
 * 模型融合配置表Repository
 */
public interface AmAapModelInfoRepository extends JpaRepository<AmAapModelInfo, Integer> {
    
    /**
     * 根据关键词搜索
     * @param keyword 关键词
     * @param pageable 分页参数
     * @return 分页结果
     */
    @Query("SELECT m FROM AmAapModelInfo m WHERE " +
           "m.fusionMethod LIKE %:keyword% OR " +
           "m.keyContributingFactors LIKE %:keyword% OR " +
           "m.featureImportance LIKE %:keyword%")
    Page<AmAapModelInfo> search(@Param("keyword") String keyword, Pageable pageable);
} 